package com.xxl.job.admin.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xxl.job.admin.core.model.XxlJobAlarmRecord;
import org.apache.ibatis.annotations.Param;

/**
 * @author chenlinqing
 * @description:
 * @date: 2025/8/22 9:32
 */
public interface XxlJobAlarmRecordDao extends BaseMapper<XxlJobAlarmRecord> {

    /***
     * 获取最近一次发送成功的记录。根据这个判断是否需要发送
     * @param alarmType
     * @return
     */
    public XxlJobAlarmRecord getLatestSuccessSend(@Param("alarmType") Integer alarmType);

}
